package website.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import website.domain.Comment;
import website.domain.Link;
import website.domain.ResModel;

import java.util.List;

public interface CommentService extends IService<Comment> {

    ResModel issue(Comment comment);

    ResModel<IPage<Comment>> getByPage(Integer current, Integer size, Integer rid);

    ResModel reply(Comment comment);

    ResModel<List<Comment>> listReply(Integer rid, Integer id);

    ResModel getCount(Integer rid);

    ResModel<IPage<Comment>> getByList(Integer current, Integer size);

    ResModel delComment(Integer id);
}
